<template>
  <el-container>
    <!-- 菜单 -->
    <el-aside :width="store.state.isFoldMenus ? '65px' : '260px'">
      <MyMenus></MyMenus>
    </el-aside>
    <el-container>
      <!-- 头部 -->
      <el-header>
        <Header></Header>
      </el-header>
      <!-- 内容 -->
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script setup>
import MyMenus from "@/components/common/Menus.vue";
import Header from "@/components/common/Header.vue";
import { ref } from "vue";
import { useStore } from "vuex";
const store = useStore();
</script>

<style lang="scss" scoped>
.el-container {
  width: 100vw;
  height: 100vh;
}

.el-header,
.el-main {
  padding: 0;
}
</style>
